package String;

public class ReplaceAllDemo {
    public static void main(String[] args) {
    String line ="ABC12454554de45";
    line=line.replaceAll("[0-9]+","打死个龟孙");
    System.out.println(line);

    String nul="sjhfksdfksahdfajksf45165dgdf45dh1bfgh5sbf5h";
    nul=nul.replaceAll("[0-9]+","上山下海");
    System.out.println(nul);
        String fell="45gdsg48fghdf5dg45dhaf";
        fell=fell.replaceAll("[0-5]+","sb");
        System.out.println(fell);
    }
}
